<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Socket</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="class.snmpexception.html">« SNMPException</a></li>
      <li style="float: right;"><a href="intro.sockets.html">简介 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="refs.remote.other.html">其它服务</a></li>
    <li>Socket</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="book.sockets" class="book">
 
 <h1 class="title">Socket</h1>
 
 
 
 
 
 










 









 









 






 









 




 

 



 


<ul class="chunklist chunklist_book"><li><a href="intro.sockets.html">简介</a></li><li><a href="sockets.setup.html">安装/配置</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="sockets.requirements.html">需求</a></li><li><a href="sockets.installation.html">安装</a></li><li><a href="sockets.configuration.html">运行时配置</a></li><li><a href="sockets.resources.html">资源类型</a></li></ul></li><li><a href="sockets.constants.html">预定义常量</a></li><li><a href="sockets.examples.html">范例</a></li><li><a href="sockets.errors.html">Socket Errors</a></li><li><a href="ref.sockets.html">Socket 函数</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="function.socket-accept.html">socket_accept</a> — 接受套接字上的连接</li><li><a href="function.socket-addrinfo-bind.html">socket_addrinfo_bind</a> — 从给定的 addrinfo 创建并绑定一个套接字</li><li><a href="function.socket-addrinfo-connect.html">socket_addrinfo_connect</a> — 指定 addrinfo 创建并连接套接字</li><li><a href="function.socket-addrinfo-explain.html">socket_addrinfo_explain</a> — 获取有关 addrinfo 的信息</li><li><a href="function.socket-addrinfo-lookup.html">socket_addrinfo_lookup</a> — 获取数组，包含有关给定主机名的 getaddrinfo 内容</li><li><a href="function.socket-bind.html">socket_bind</a> — 给套接字绑定名字</li><li><a href="function.socket-clear-error.html">socket_clear_error</a> — 清除套接字或者最后的错误代码上的错误</li><li><a href="function.socket-close.html">socket_close</a> — 关闭 Socket 实例</li><li><a href="function.socket-cmsg-space.html">socket_cmsg_space</a> — Calculate message buffer size</li><li><a href="function.socket-connect.html">socket_connect</a> — 开启一个套接字连接</li><li><a href="function.socket-create-listen.html">socket_create_listen</a> — 在端口上打开一个套接字以接受连接</li><li><a href="function.socket-create-pair.html">socket_create_pair</a> — 创建一对彼此连接的套接字，并用数组存储</li><li><a href="function.socket-create.html">socket_create</a> — 创建一个套接字（通讯节点）</li><li><a href="function.socket-export-stream.html">socket_export_stream</a> — Export a socket into a stream that encapsulates a socket</li><li><a href="function.socket-get-option.html">socket_get_option</a> — 获取套接字的套接字选项</li><li><a href="function.socket-getopt.html">socket_getopt</a> — 别名 socket_get_option</li><li><a href="function.socket-getpeername.html">socket_getpeername</a> — 获取套接字远端名字，返回主机名和端口号或是 Unix 文件系统路径，具体取决于套接字类型</li><li><a href="function.socket-getsockname.html">socket_getsockname</a> — 获取套接字本地端的名字，返回主机名和端口号或是 Unix 文件系统路径，具体取决于套接字类型</li><li><a href="function.socket-import-stream.html">socket_import_stream</a> — 导入 stream</li><li><a href="function.socket-last-error.html">socket_last_error</a> — 返回套接字上的最后一个错误</li><li><a href="function.socket-listen.html">socket_listen</a> — 监听套接字的连接</li><li><a href="function.socket-read.html">socket_read</a> — 从套接字中读取最大长度的数据</li><li><a href="function.socket-recv.html">socket_recv</a> — 从已连接的 socket 接收数据</li><li><a href="function.socket-recvfrom.html">socket_recvfrom</a> — 从套接字接收数据，无论它是否是面向连接的</li><li><a href="function.socket-recvmsg.html">socket_recvmsg</a> — Read a message</li><li><a href="function.socket-select.html">socket_select</a> — 从给定套接字数组运行带指定超时时间的 select() 系统调用</li><li><a href="function.socket-send.html">socket_send</a> — 向已连接的套接字发送数据</li><li><a href="function.socket-sendmsg.html">socket_sendmsg</a> — Send a message</li><li><a href="function.socket-sendto.html">socket_sendto</a> — 向套接字发送消息，无论它是否已建立连接</li><li><a href="function.socket-set-block.html">socket_set_block</a> — 设置套接字为阻塞模式</li><li><a href="function.socket-set-nonblock.html">socket_set_nonblock</a> — 设置套接字为非阻塞模式</li><li><a href="function.socket-set-option.html">socket_set_option</a> — 为套接字设置套接字选项</li><li><a href="function.socket-setopt.html">socket_setopt</a> — 别名 socket_set_option</li><li><a href="function.socket-shutdown.html">socket_shutdown</a> — 关闭套接字接收或发送，或两者都关闭</li><li><a href="function.socket-strerror.html">socket_strerror</a> — 返回描述套接字错误的字符串</li><li><a href="function.socket-write.html">socket_write</a> — 向套接字写数据</li><li><a href="function.socket-wsaprotocol-info-export.html">socket_wsaprotocol_info_export</a> — 导出 WSAPROTOCOL_INFO 结构体</li><li><a href="function.socket-wsaprotocol-info-import.html">socket_wsaprotocol_info_import</a> — 从另一个进程导入套接字</li><li><a href="function.socket-wsaprotocol-info-release.html">socket_wsaprotocol_info_release</a> — 释放已导出的 WSAPROTOCOL_INFO 结构体</li></ul></li><li><a href="class.socket.html">Socket</a> — Socket 类</li><li><a href="class.addressinfo.html">AddressInfo</a> — AddressInfo 类</li></ul></div></div></div></body></html>